class TaskEntity {
  List<TaskItem>? list;
  int? points;
  int? signDays;

  TaskEntity({this.list, this.points, this.signDays});

  TaskEntity.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = <TaskItem>[];
      json['list'].forEach((v) {
        list!.add(new TaskItem.fromJson(v));
      });
    }
    points = json['points'];
    signDays = json['signDays'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    data['points'] = this.points;
    data['signDays'] = this.signDays;
    return data;
  }
}

class TaskItem {
  String? msg;
  String? path;
  String? points;
  int? sort;
  int? status;
  String? title;
  int? type;

  TaskItem(
      {this.msg,
        this.path,
        this.points,
        this.sort,
        this.status,
        this.title,
        this.type});

  TaskItem.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    path = json['path'];
    points = json['points'];
    sort = json['sort'];
    status = json['status'];
    title = json['title'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['path'] = this.path;
    data['points'] = this.points;
    data['sort'] = this.sort;
    data['status'] = this.status;
    data['title'] = this.title;
    data['type'] = this.type;
    return data;
  }
}

class MarketItem {
  int? couponId;
  int? id;
  int? isTake;
  String? logo;
  String? name;
  int? points;
  int? sort;
  int? status;
  int? type;

  MarketItem(
      {this.couponId,
        this.id,
        this.isTake,
        this.logo,
        this.name,
        this.points,
        this.sort,
        this.status,
        this.type});

  MarketItem.fromJson(Map<String, dynamic> json) {
    couponId = json['couponId'];
    id = json['id'];
    isTake = json['isTake'];
    logo = json['logo'];
    name = json['name'];
    points = json['points'];
    sort = json['sort'];
    status = json['status'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['couponId'] = this.couponId;
    data['id'] = this.id;
    data['isTake'] = this.isTake;
    data['logo'] = this.logo;
    data['name'] = this.name;
    data['points'] = this.points;
    data['sort'] = this.sort;
    data['status'] = this.status;
    data['type'] = this.type;
    return data;
  }
}

class PointsHistory {
  String? createTime;
  String? expireTime;
  String? message;
  String? otherId;
  int? points;
  int? sign;
  int? type;
  String? userId;

  PointsHistory(
      {this.createTime,
        this.expireTime,
        this.message,
        this.otherId,
        this.points,
        this.sign,
        this.type,
        this.userId});

  PointsHistory.fromJson(Map<String, dynamic> json) {
    createTime = json['createTime'];
    expireTime = json['expireTime'];
    message = json['message'];
    otherId = json['otherId'];
    points = json['points'];
    sign = json['sign'];
    type = json['type'];
    userId = json['userId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createTime'] = this.createTime;
    data['expireTime'] = this.expireTime;
    data['message'] = this.message;
    data['otherId'] = this.otherId;
    data['points'] = this.points;
    data['sign'] = this.sign;
    data['type'] = this.type;
    data['userId'] = this.userId;
    return data;
  }
}

